<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div,img{
            width: 300px;
            height: 150px;
            border: 10px solid transparent;/*transparent 透明*/
        }
        .div1{
            -o-border-image: url(images/border.png) 10 round;
            -moz-border-image: url(images/border.png)10 round;
            -webkit-border-image: url(images/border.png)10 round;
            border-image: url(images/border.png)10 round;
        }
        .div2{
            -o-border-image: url(images/border.png) 10 repeat;
            -moz-border-image: url(images/border.png)10 repeat;
            -webkit-border-image: url(images/border.png)10 repeat;
            border-image: url(images/border.png)10  repeat;
        }
        .div3,img{
            -o-border-image: url(images/border.png) 10 stretch;
            -moz-border-image: url(images/border.png)10 stretch;
            -webkit-border-image: url(images/border.png)10 stretch;
            border-image: url(images/border.png)10  stretch;
        }
    </style>
</head>
<body>
    <div class="div1"></div>
    <div class="div2"></div>
    <div class="div3"></div>
    <img src="../CSS3边框/images/1.jpg" alt="">
</body>
</html>